package cn.auth.pojo;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: 毛苏宇
 * User: me
 * Date: 2020/6/24
 * Time: 15:02
 * Description:
 */
public class User {

    private long userId;
    private String username;
    private String password;
    private long updateTime;
    private int identity;

    public User() {
    }

    public User(String username, String password, int identity) {
        this.username = username;
        this.password = password;
        this.identity = identity;
    }

    public User(String username, String password, long updateTime, int identity) {
        this.username = username;
        this.password = password;
        this.updateTime = updateTime;
        this.identity = identity;
    }

    public User(long userId, String username, String password, long updateTime, int identity) {
        this.userId = userId;
        this.username = username;
        this.password = password;
        this.updateTime = updateTime;
        this.identity = identity;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(long updateTime) {
        this.updateTime = updateTime;
    }

    public int getIdentity() {
        return identity;
    }

    public void setIdentity(int identity) {
        this.identity = identity;
    }

    @Override
    public String toString() {
        return "GcUser{" +
                "userId=" + userId +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", updateTime=" + updateTime +
                ", identity=" + identity +
                '}';
    }
}